package com.hegongda.service;

import com.hegongda.bean.Orders;
import com.hegongda.bean.PageBean;
import com.hegongda.bean.Product;
import com.hegongda.bean.User;

import java.sql.SQLException;

public interface AdminService {
    public int delNav(String cid);
    public int addNav(String cname);
    public int updNav(String cid,String cname);
    public int addPriduct(Product product);
    public int delPriduct(String pid ,String path);
    public PageBean<Product> getPageProduct(int pageSize, int pagenum);
    public int updPFlag(int pflag,String pid);
    public PageBean<User> getPageUser(int pageSize, int pagenum);
    public int updUser(User user);
    public int delUser(String uid);
    public User getOneUser(String uid);
    public PageBean<Orders> selAllOrder(int pageSize, int pagenum);
    public int editCourierNum(String oid,String couriernum);
    public int editCourier(String oid, String couriernum);
    public int addintroduce(String iid, String introduce);
}
